package design.patterns.adaptermode.exercise.classadapter;

/**
 * desc     : 类适配器模式，直接继承 Adaptee
 * dateTime : 2020-07-21 18:06
 *
 * @author wwchen
 */
public class Adapter extends Adaptee implements Target {
    @Override
    public String targetInterface1() {
        return "adapter 适配到了 目标接口1";
    }

    @Override
    public String targetInterface2() {
        return "adapter 适配到了 目标接口2";
    }

    @Override
    public String operation2() {
        System.out.println("");
        return super.operation2();
    }
}
